3.628 \(\int (3-3 \sin (e+f x))^{-1-m} (1+\sin (e+f x))^m \, dx\)

Optimal. Leaf size=43 \[ \frac {\cos (e+f x) (3-3 \sin (e+f x))^{-m-1} (\sin (e+f x)+1)^m}{f (2 m+1)} \]

[Out]

cos(f*x+e)*(3-3*sin(f*x+e))^(-1-m)*(1+sin(f*x+e))^m/f/(1+2*m)

________________________________________________________________________________________

Rubi [A]  time = 0.05, antiderivative size = 43, normalized size of antiderivative = 1.00, number of steps used = 1, number of rules used = 1, integrand size = 27, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.037, Rules used = {2742} \[ \frac {\cos (e+f x) (3-3 \sin (e+f x))^{-m-1} (\sin (e+f x)+1)^m}{f (2 m+1)} \]

Antiderivative was successfully verified.

[In]

Int[(3 - 3*Sin[e + f*x])^(-1 - m)*(1 + Sin[e + f*x])^m,x]

[Out]

(Cos[e + f*x]*(3 - 3*Sin[e + f*x])^(-1 - m)*(1 + Sin[e + f*x])^m)/(f*(1 + 2*m))

Rule 2742

Int[((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_)*((c_) + (d_.)*sin[(e_.) + (f_.)*(x_)])^(n_), x_Symbol] :> Simp
[(b*Cos[e + f*x]*(a + b*Sin[e + f*x])^m*(c + d*Sin[e + f*x])^n)/(a*f*(2*m + 1)), x] /; FreeQ[{a, b, c, d, e, f
, m, n}, x] && EqQ[b*c + a*d, 0] && EqQ[a^2 - b^2, 0] && EqQ[m + n + 1, 0] && NeQ[m, -2^(-1)]

Rubi steps

\begin {align*} \int (3-3 \sin (e+f x))^{-1-m} (1+\sin (e+f x))^m \, dx &=\frac {\cos (e+f x) (3-3 \sin (e+f x))^{-1-m} (1+\sin (e+f x))^m}{f (1+2 m)}\\ \end {align*}

________________________________________________________________________________________

Mathematica [B]  time = 0.52, size = 97, normalized size = 2.26 \[ \frac {\sin \left (\frac {1}{4} (2 e+2 f x+\pi )\right ) (6-6 \sin (e+f x))^{-m} (\sin (e+f x)+1)^m \cos ^{-2 m-1}\left (\frac {1}{4} (2 e+2 f x+\pi )\right ) \left (\cos \left (\frac {1}{2} (e+f x)\right )-\sin \left (\frac {1}{2} (e+f x)\right )\right )^{2 m}}{3 (2 f m+f)} \]

Antiderivative was successfully verified.

[In]

Integrate[(3 - 3*Sin[e + f*x])^(-1 - m)*(1 + Sin[e + f*x])^m,x]

[Out]

(Cos[(2*e + Pi + 2*f*x)/4]^(-1 - 2*m)*(Cos[(e + f*x)/2] - Sin[(e + f*x)/2])^(2*m)*(1 + Sin[e + f*x])^m*Sin[(2*
e + Pi + 2*f*x)/4])/(3*(f + 2*f*m)*(6 - 6*Sin[e + f*x])^m)

________________________________________________________________________________________

fricas [A]  time = 0.45, size = 41, normalized size = 0.95 \[ \frac {{\left (\sin \left (f x + e\right ) + 1\right )}^{m} {\left (-3 \, \sin \left (f x + e\right ) + 3\right )}^{-m - 1} \cos \left (f x + e\right )}{2 \, f m + f} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((3-3*sin(f*x+e))^(-1-m)*(1+sin(f*x+e))^m,x, algorithm="fricas")

[Out]

(sin(f*x + e) + 1)^m*(-3*sin(f*x + e) + 3)^(-m - 1)*cos(f*x + e)/(2*f*m + f)

________________________________________________________________________________________

giac [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (\sin \left (f x + e\right ) + 1\right )}^{m} {\left (-3 \, \sin \left (f x + e\right ) + 3\right )}^{-m - 1}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((3-3*sin(f*x+e))^(-1-m)*(1+sin(f*x+e))^m,x, algorithm="giac")

[Out]

integrate((sin(f*x + e) + 1)^m*(-3*sin(f*x + e) + 3)^(-m - 1), x)

________________________________________________________________________________________

maple [F]  time = 0.78, size = 0, normalized size = 0.00 \[ \int \left (3-3 \sin \left (f x +e \right )\right )^{-1-m} \left (1+\sin \left (f x +e \right )\right )^{m}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((3-3*sin(f*x+e))^(-1-m)*(1+sin(f*x+e))^m,x)

[Out]

int((3-3*sin(f*x+e))^(-1-m)*(1+sin(f*x+e))^m,x)

________________________________________________________________________________________

maxima [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (\sin \left (f x + e\right ) + 1\right )}^{m} {\left (-3 \, \sin \left (f x + e\right ) + 3\right )}^{-m - 1}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((3-3*sin(f*x+e))^(-1-m)*(1+sin(f*x+e))^m,x, algorithm="maxima")

[Out]

integrate((sin(f*x + e) + 1)^m*(-3*sin(f*x + e) + 3)^(-m - 1), x)

________________________________________________________________________________________

mupad [B]  time = 7.85, size = 43, normalized size = 1.00 \[ \frac {\cos \left (e+f\,x\right )\,{\left (\sin \left (e+f\,x\right )+1\right )}^m}{f\,\left (2\,m+1\right )\,{\left (3-3\,\sin \left (e+f\,x\right )\right )}^{m+1}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((sin(e + f*x) + 1)^m/(3 - 3*sin(e + f*x))^(m + 1),x)

[Out]

(cos(e + f*x)*(sin(e + f*x) + 1)^m)/(f*(2*m + 1)*(3 - 3*sin(e + f*x))^(m + 1))

________________________________________________________________________________________

sympy [F(-1)]  time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((3-3*sin(f*x+e))**(-1-m)*(1+sin(f*x+e))**m,x)

[Out]

Timed out

________________________________________________________________________________________